home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.2)
-
- import sys
- import win32ui
-
- class Object:
-
- def __init__(self, initObj = None):
- self.__dict__['_obj_'] = initObj
- if initObj is not None:
- initObj.AttachObject(self)
-
-
-
- def __del__(self):
- self.close()
-
-
- def __getattr__(self, attr):
- if attr != '__dict__':
-
- try:
- o = self.__dict__['_obj_']
- if o is not None:
- return getattr(o, attr)
-
- if attr[0] != '_' and attr[-1] != '_':
- raise win32ui.error, 'The MFC object has died.'
- except KeyError:
- pass
-
-
- raise AttributeError, attr
-
-
- def OnAttachedObjectDeath(self):
- self._obj_ = None
-
-
- def close(self):
- if self.__dict__.has_key('_obj_'):
- if self._obj_ is not None:
- self._obj_.AttachObject(None)
- self._obj_ = None
-
-
-
-
-
- class CmdTarget(Object):
-
- def __init__(self, initObj):
- Object.__init__(self, initObj)
-
-
-